{include file = 'header.tpl'}
<form action="{$baseUrl}admin/regRule" method="post">

<select id="lang" name="lang">
    <option value="1">意大利语</option>
    <option value="2">英文</option>
    <option value="3">中文</option>
</select>
<h3>注册规则</h3>
<p>
    <textarea name="regRule" style="width:800px;height:600px;">
        {$content}
    </textarea>
</p>

<input type="submit" value="保存" />
</form>
{literal}
<script src='{/literal}{$baseUrl}{literal}public/plugins/kindeditor/kindeditor-min.js' ></script>
<script src='{/literal}{$baseUrl}{literal}public/plugins/kindeditor/zh_CN.js' ></script>
<script>

var editor;
KindEditor.ready(function(K) {
        editor = K.create('textarea[name="regRule"]', {
        allowFileManager : true
    });

});
s=document.getElementById("lang");
s.onchange=function(e){
   window.location="{/literal}{$baseUrl}{literal}/admin/regRuleForm?ln="+this.value; 
    
}
s.value={/literal}{$ln}{literal};
</script>

{/literal}

{include file = 'footer.tpl'}
